angular.module('liemallfodder')
  .config(function ($stateProvider) {
    $stateProvider
      .state('home', {
        url: '/home',
        templateUrl: 'js/home/home.html',
        controller: 'HomeCtrl'
      })
      .state('subcategorylist', {
        url: '/subcategorylist:category_id',
        templateUrl: 'js/home/subcategorylist.html',
        controller: 'SubCategoryListCtrl'
      })
      .state('materiallist', {
        url: '/materiallist:subcategory_id',
        templateUrl: 'js/home/materiallist.html',
        controller: 'MaterialListCtrl'
      })
      .state('material-detail', {
        url: '/material-detail:material_id',
        templateUrl: 'js/home/materialdetail.html',
        controller: 'MaterialDetailCtrl'
      });
  });
